import CrudApi from '..'

export interface CourseType {
  _id?: string
  name: string
  cover: string
  episodes: string[]
  createdAt?: string
  updatedAt?: string
}

export default new CrudApi<CourseType>('courses')
